package com.aspose.cells;

class zbgs extends zcj {
   zbgs(zn var1, float var2, float var3, zbkq var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = this.g;
      float var3 = this.h;
      float var4 = this.e.k().h();
      float var5 = this.e.k().i();
      float var6 = 0.0F;
      float var7 = 0.0F;
      float var8 = 0.0F;
      float var9 = 0.0F;
      float var10 = 0.0F;
      float var11 = 0.0F;
      float var12 = 0.0F;
      float var13 = 0.0F;
      float var14 = 0.0F;
      float var15 = 0.0F;
      float var16 = 0.0F;
      float var17 = 0.0F;
      switch(this.e.l.a.size()) {
      case 1:
         if (((zak)this.e.l.a.get(0)).b() == 327) {
            var14 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var15 = var5 * 5233.0F / 21600.0F;
            var16 = var4 * 18106.0F / 21600.0F;
            var17 = var5 * 7905.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328) {
            var14 = var4 * 14294.0F / 21600.0F;
            var15 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var16 = var4 * 18106.0F / 21600.0F;
            var17 = var5 * 7905.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 329) {
            var14 = var4 * 14294.0F / 21600.0F;
            var15 = var5 * 5233.0F / 21600.0F;
            var16 = var4 - var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var17 = var5 * 7905.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 330) {
            var14 = var4 * 14294.0F / 21600.0F;
            var15 = var5 * 5233.0F / 21600.0F;
            var16 = var4 * 18106.0F / 21600.0F;
            var17 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
         }
         break;
      case 2:
         if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 328) {
            var14 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var15 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var16 = var4 * 18106.0F / 21600.0F;
            var17 = var5 * 7905.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 329) {
            var14 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var15 = var5 * 5233.0F / 21600.0F;
            var16 = var4 - var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var17 = var5 * 7905.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 330) {
            var14 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var15 = var5 * 5233.0F / 21600.0F;
            var16 = var4 * 18106.0F / 21600.0F;
            var17 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328 && ((zak)this.e.l.a.get(1)).b() == 329) {
            var14 = var4 * 14294.0F / 21600.0F;
            var15 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var16 = var4 - var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var17 = var5 * 7905.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328 && ((zak)this.e.l.a.get(1)).b() == 330) {
            var14 = var4 * 14294.0F / 21600.0F;
            var15 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var16 = var4 * 18106.0F / 21600.0F;
            var17 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 329 && ((zak)this.e.l.a.get(1)).b() == 330) {
            var14 = var4 * 14294.0F / 21600.0F;
            var15 = var5 * 5233.0F / 21600.0F;
            var16 = var4 - var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var17 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         }
         break;
      case 3:
         if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 328 && ((zak)this.e.l.a.get(2)).b() == 329) {
            var14 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var15 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var16 = var4 - var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
            var17 = var5 * 7905.0F / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 328 && ((zak)this.e.l.a.get(2)).b() == 330) {
            var14 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var15 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var16 = var4 * 18106.0F / 21600.0F;
            var17 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 327 && ((zak)this.e.l.a.get(1)).b() == 329 && ((zak)this.e.l.a.get(2)).b() == 330) {
            var14 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
            var15 = var5 * 5233.0F / 21600.0F;
            var16 = var4 - var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var17 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         } else if (((zak)this.e.l.a.get(0)).b() == 328 && ((zak)this.e.l.a.get(1)).b() == 329 && ((zak)this.e.l.a.get(2)).b() == 330) {
            var14 = var4 * 14294.0F / 21600.0F;
            var15 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F;
            var16 = var4 - var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
            var17 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         }
         break;
      case 4:
         var14 = var4 - var4 * (com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(0)).a()) / 21600.0F);
         var15 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(1)).a()) / 21600.0F;
         var16 = var4 - var4 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(2)).a()) / 21600.0F;
         var17 = var5 * com.aspose.cells.b.a.ze.a((Object)((zak)this.e.l.a.get(3)).a()) / 21600.0F;
         break;
      default:
         var14 = var4 * 14294.0F / 21600.0F;
         var15 = var5 * 5233.0F / 21600.0F;
         var16 = var4 * 18106.0F / 21600.0F;
         var17 = var5 * 7905.0F / 21600.0F;
      }

      var6 = var5 - 2.0F * var17;
      var7 = var5 / 2.0F - var15;
      var8 = var4 - var16;
      var11 = var4 - var8;
      var12 = var5 / 2.0F - var7;
      var13 = var5 / 2.0F - var6 / 2.0F;
      com.aspose.cells.b.a.b.a.ze var18 = new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var19 = new com.aspose.cells.b.a.b.zo[11];
      switch(this.e.a) {
      case 1:
      case 2:
         var19[0] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var14, var3);
         var19[1] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3);
         var19[2] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5);
         var19[3] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var14, var3 + var5);
         var19[4] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var14, var3 + var5 - var13);
         var19[5] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5 - var13);
         var19[6] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var5 - var12);
         var19[7] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5 / 2.0F);
         var19[8] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var12);
         var19[9] = new com.aspose.cells.b.a.b.zo(var2 + var8, var3 + var13);
         var19[10] = new com.aspose.cells.b.a.b.zo(var2 + var4 - var14, var3 + var13);
         var18.b(var19);
         break;
      case 3:
      case 4:
         var19[0] = new com.aspose.cells.b.a.b.zo(var2, var3);
         var19[1] = new com.aspose.cells.b.a.b.zo(var2 + var14, var3);
         var19[2] = new com.aspose.cells.b.a.b.zo(var2 + var14, var3 + var13);
         var19[3] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var13);
         var19[4] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var12);
         var19[5] = new com.aspose.cells.b.a.b.zo(var2 + var4, var3 + var5 / 2.0F);
         var19[6] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var5 - var12);
         var19[7] = new com.aspose.cells.b.a.b.zo(var2 + var11, var3 + var5 - var13);
         var19[8] = new com.aspose.cells.b.a.b.zo(var2 + var14, var3 + var5 - var13);
         var19[9] = new com.aspose.cells.b.a.b.zo(var2 + var14, var3 + var5);
         var19[10] = new com.aspose.cells.b.a.b.zo(var2, var3 + var5);
         var18.b(var19);
      }

      return var18;
   }
}
